#include"TcpServer.hpp"
#include"Service.hpp"
#include"NetCal.hpp"
int main()
{
    NetCal cal;
    IOService service(std::bind(&NetCal::Caculator,&cal, std::placeholders::_1));
    service_io_t fuc = std::bind(&IOService::IOExcute, &service, placeholders::_1, placeholders::_2);
    std::unique_ptr<TcpServer> server = std::make_unique<TcpServer>(fuc);
    server->Loop();
    return 0;
}